.audio-player {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  position: sticky;
  top: 10px;
  z-index: 100;
}

.player-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  justify-content: center;
}

.play-btn, .repeat-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  min-height: 50px;
}

.play-btn {
  background: #007bff;
  color: white;
  font-size: 20px;
}

.play-btn:hover {
  background: #0056b3;
  transform: scale(1.05);
}

.play-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.repeat-btn {
  background: #f8f9fa;
  color: #666;
}

.repeat-btn.active {
  background: #28a745;
  color: white;
}

.repeat-btn:hover {
  background: #e9ecef;
}

.repeat-btn.active:hover {
  background: #1e7e34;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-display {
  font-size: 14px;
  color: #666;
  min-width: 45px;
  text-align: center;
}

.progress-bar {
  flex: 1;
  height: 32px;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 0;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #f1f3f4;
  border-radius: 4px;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
  border-radius: 4px;
  transition: width 0.1s ease;
  box-shadow: 0 1px 3px rgba(0, 123, 255, 0.3);
}

.repeat-start, .repeat-end {
  position: absolute;
  top: -2px;
  width: 2px;
  height: 10px;
  background: #28a745;
  border-radius: 1px;
}

.repeat-range {
  position: absolute;
  top: 0;
  height: 100%;
  background: rgba(40, 167, 69, 0.2);
  border-radius: 3px;
}

@media (max-width: 768px) {
  .audio-player {
    padding: 15px;
    margin-bottom: 15px;
    position: sticky;
    top: 5px;
  }

  .player-controls {
    margin-bottom: 10px;
  }

  .play-btn, .repeat-btn {
    min-width: 45px;
    min-height: 45px;
    font-size: 20px;
  }

  .play-btn {
    font-size: 18px;
  }

  .time-display {
    font-size: 12px;
    min-width: 40px;
  }

  .progress-bar {
    height: 30px;
    padding: 6px 0;
  }
}